package com.food.eat.mapper;

import com.food.eat.my.MyMapper;
import com.food.eat.pojo.OrderProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface OrderProductMapper extends MyMapper<OrderProduct> {


    @Update(value = "update order_product set storege_num=storege_num-1 where product_id=#{productId}")
    void dec(String productId);
}
